package com.ruoyi.project.basic.inventory.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.basic.inventory.mapper.JcInventoryMapper;
import com.ruoyi.project.basic.inventory.domain.JcInventory;
import com.ruoyi.project.basic.inventory.service.IJcInventoryService;

/**
 * 存货档案Service业务层处理
 * 
 * @author frank
 * @date 2024-08-24
 */
@Service
public class JcInventoryServiceImpl implements IJcInventoryService 
{
    @Autowired
    private JcInventoryMapper jcInventoryMapper;

    /**
     * 查询存货档案
     * 
     * @param jcInventoryoid 存货档案主键
     * @return 存货档案
     */
    @Override
    public JcInventory selectJcInventoryByJcInventoryoid(String jcInventoryoid)
    {
        return jcInventoryMapper.selectJcInventoryByJcInventoryoid(jcInventoryoid);
    }

    /**
     * 查询存货档案列表
     * 
     * @param jcInventory 存货档案
     * @return 存货档案
     */
    @Override
    public List<JcInventory> selectJcInventoryList(JcInventory jcInventory)
    {
        return jcInventoryMapper.selectJcInventoryList(jcInventory);
    }

    /**
     * 新增存货档案
     * 
     * @param jcInventory 存货档案
     * @return 结果
     */
    @Override
    public int insertJcInventory(JcInventory jcInventory)
    {
        return jcInventoryMapper.insertJcInventory(jcInventory);
    }

    /**
     * 修改存货档案
     * 
     * @param jcInventory 存货档案
     * @return 结果
     */
    @Override
    public int updateJcInventory(JcInventory jcInventory)
    {
        return jcInventoryMapper.updateJcInventory(jcInventory);
    }

    /**
     * 批量删除存货档案
     * 
     * @param jcInventoryoids 需要删除的存货档案主键
     * @return 结果
     */
    @Override
    public int deleteJcInventoryByJcInventoryoids(String[] jcInventoryoids)
    {
        return jcInventoryMapper.deleteJcInventoryByJcInventoryoids(jcInventoryoids);
    }

    /**
     * 删除存货档案信息
     * 
     * @param jcInventoryoid 存货档案主键
     * @return 结果
     */
    @Override
    public int deleteJcInventoryByJcInventoryoid(String jcInventoryoid)
    {
        return jcInventoryMapper.deleteJcInventoryByJcInventoryoid(jcInventoryoid);
    }
}
